﻿@model Eyskens.AutoTaggerWeb.Models.EmptyWord
<p style="margin-top:90px;"></p>
@using (Html.BeginForm())
{
    
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        @Html.HiddenFor(model => model.id)       
        <div class="form-group">
            @Html.LabelFor(model => model.word, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.word, new { htmlAttributes = new { @class = "form-control" } })
                @Html.ValidationMessageFor(model => model.word, "", new { @class = "text-danger" })
            </div>
        </div>        

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index",
                new
                {
                    letter = Model.word.Substring(0,1),
                    SPHostUrl = HttpContext.Current.Request.QueryString["SPHostUrl"],
                    SPAppWebUrl = HttpContext.Current.Request.QueryString["SPAppWebUrl"]
                })
</div>
